Functioning login and registration.