added basic application states to the Model

Added 2 main states : logged_in or logged_out