Restrict length and character type of login input forms