Added basic password authentication to user model.
Added validations to user mode.