Added update password functionality with php validation.