Validations for username format and password length.