fixed some login and account creation bugs