Refactorings in register and login
Made register work properly
Forgotten passwords, email confirmations