Support for login, created code for registration.