Updated login and fixed account creation