Moved preference listener to the PreferenceFragment class and implemented sign up preference