Added login hadler