added message when clicking Register button