Started on user login function in server/client