Added in inbox quantity check on log-in and prevent opening when empty.