Login and registration now fully working