Local authentication added and other changes

- validateLogin function removed from user controller
- Authentication error handling added
- Email validation added to create and edit functions in user model