Added login-registration functionality