Fixing login and registeration to accept callbacks
stressing that onError and onSuccess are there