Model and controller changed

+ Now the password is encrypted in the model.