added basic login and registration