login dialog pops up, magicalrecord replacement of core data