Rest call functionality for sign up