Fixed some login bugs
Handle user creation