Added login modal dialog and got login working.