Testing out $resource $q promis
Using $resource for registering a new users
updated routes and added logout and update user