added some functionality to the registrationActivity