added failure dialog to logging in