calling the backend on registration