Refined models, added pseudo-code for user registration and login and message views