login class and jdbc connector