added almost working login