clear unused code & fixed bugs

Clear out unused test codes.
Fixed bugs on password admin interface.
Implement that if the password is empty when editing an user, there is
no change in database for the database.