Fixed up login and registration