Login form with db connection