Improved register and Facebook login
TODO: Complete tests