Since his mouse and keyboard are not working on login; this tells me that the installation of xserver-xorg was the first installation, so input-all is a needed package to restore the mouse and keyboard functionality.
In the meantime... this is a really bad time for me to run away- but I actually have been lingering and am running late for an appointment...
Hopefully the installation of input-all will get Hes able to log in and operate normally for now and you and others can continue to help troubleshoot the flickering screen issue.