closes issue #4 validate call back url and manage exceptions