Java user login homework