Added logs and fixed ldap login bg