Refactored models and added feature cookie store/fetch from file, to login only once