Fixed issues with signing in and redirecting sucking and some minor bugs.