fixed create account redirecting to login bug