Device Connection Check.

Edited code to see if motion controller and lamp are connected or not,
if not a alert box is thrown saying which one has to be connected.

Also established login system that works now.