Login controller updated