security login with modal dialog