Completed second problem, Check Login