updated error messages , added adminmodel