added static object for access
Dismissing view controller after login