Login functionality.

Author: Ashwin