Rules for a valid password:
1. Password must contain both digits and letters
2. The Password should contain a minimum of 5 characters and a maximum of 12 characters
3. The Password should contain a special character.Password consist of the following characters: !,@,#,$,%
4. Password should contain at least one upper case letter A-Z
5. Password should contain at least one lower case letter a-z