Login checks added