Changed registration to post method
Changed some logging in profile.js