fixed #16 - Autoclose alert message
fixed #17 - Common method for getting the logged in user