Added check to cache login status for 5 minutes & changed log messages