Login and registration now working