Added an onclick listener to the cancel button in RegistrationFragment