Fixes Registration bug so both registration and login work properly