Creating Models and authentication