added registration method to the backend