Implemented the checks for checking for client input in the server class