Change sling#login to sling#is_valid_login. Invalid login now returns failure result rather than an exception.