User click on log in when user already logged in so should throw message.
You can check value of field uid of global variable $user:

global $user;
Contains preferences and other account information for logged-in users. When a user is not logged-in, the $user-&gt;uid property is set to 0.

http://api.drupal.org/api/drupal/developer!globals.php/global/user