Formatting fix
Take in the maximum possible length for the password. If an incorrect value is entered for the character set or password length then keep prompting the user until they have put in correct values