Added to the API, fixed sign_in redirects.