added flash on login