Return true instead execute exit

This pull request solves the issue on #4519 .

I've just replaced the exit statement with return true. I've also checked that the registration process doesn't fail and that everything works properly.