Added logincheck