Trying out regular expressions to check if password and user name are valid