added login and registration for user