Added a log in check