Flash message after invalid login operation was added. Code cleanup.