Cleaned code and prevented signup/login when signed in