Check first if MetaMask is installed:
Detect MetaMask
Initate the Login process:
Login with MetaMask