added create/login logic, updated models