partial logic to login or signup users.