Redirect properly when signing in from home page