added users login functionality