added the button functionality for user registration user post data to server