Created models
added user authentication code