added basic login and register feature