Refactored post_params and updated registration