Set preferred password implemented, password encryption implemented