Fixing create profile/login bug