Added edit password

Added the function to edit the password.