Got login and registration working