login fixed and working nicely