Fixed bug in trying to access edit password page.