Added som logic to log in

Need som planning for rest
Added models and makes sure logIn can return userobject