final OAuth.Response response = twitter.retrieveRequestToken();
if (response.error==null) {
final User user = new User();
user.token = response.token;
user.secret = response.secret;
user.save();
session.put("userId", user.id);
redirect(twitter.redirectUrl(response.token));
} else {
Logger.error("Error contacting twitter: " + response.error);
login();