users model partially working again
made user name unique index