added login registration
added logout and login-restricted functionality