decomposed the signup controller module to create a separate handler for AJAX requests