Makes login/registration working.