Unable to ConfigureEmail in ERPNext

Even when giving the correct username and password it shows error “Invalid login or password”.

https://support.google.com/accounts/answer/6010255?hl=en