Added password errors with a flash message