Refactored password change frontend (#745)