Fixed tons of bugs in both client and server side.
Login is now working!