Got login and reg working