Refactored login

-bugfixes for user, publications, news
-login now based on form submit
Refactoring login