Added missing login and webcam functionality.
Tidy up.