fixed all errors in the register and finished login

Now to fix the sqlite mysql crap. ignore my last commit message