AD: added authorization, user email uniqueness validation.
TK: Fixed bug with password; prettified code
TK: at last fixed login logic (password comparetion)
Merge branch 'Issue#4'