Implemented registration + login/logout