login, signup functionality for client