added model classes and user controller