add onlineUsersRecord function to prevent a user login more than 2 times.