Fixed all authenticationc.
Changed models and database.
Improved templates.