Added login and registration.