implemented changes to when app first starts user must log in/register