Added simple login feature. Made ProfileModel into a singleton class.
Added more comments.