Password and username validation added

password and user name get information from this is added to the command
class.