Added function to set users as online true or false