added create account and login logic, updated models