Added user model functionality and user view functionality