add autologin when registration is OK, add before_action to category new create, hide category new from guest