Added base rest entities for when the login resource uses the same code.