Added loggedIn decorator
fixed loggin in
started defining models for consuption