made a working login+registration