Add sling#login to check credential validity.