added reg_success method to the user controller