validation against input

validate the ciphers of identity and password