Validate integer and verify connection with server 

Added function that checks server connection
Set validation with integer values