Query ldap to check credentials

First try to bind anonymously in order to check connection to ldap server. Then create a filter to search for the username. If the resultset contains one result, then it is a valid username and then it checks for a valid password. If nothing was in the resultset, then the username is invalid. Also created a back button.