How to track FTP logins

I have put in the "script" command in the .profile of a particular user id that tracks the terminal session when the user id logs in.
But when the user logs on to the server using FTP, how can this be tracked?
Any input will be appreciated.

Change /bin/false to the shell /sbin/nologin. Make sbin/nologin a link to a script that updates a file somewhere. /sbin/nologin should be on your system