set loggedIn to true on login to follow changes from utils
update dependencies
use constructor prototype functions