encorypt password and fix bug of admin page