Continued to check the cause of the error in changing the password and why it is not displaying the flash message as expected, as per modification and testing, the message is displaying but for an error only and not displaying the correct message, continued to modify to fix this as well as the next and previous button, as per checking of this, the code for it is correct but the button is now showing correctly.