refactored change password, edit some files to respect the database
changes