implement login and register functionality