added login and registration in client