Login functionality

Added Login functionality.