DB registration, login and getting data back as JSON now all works.