Login script updated