fixed bug while trying to login after installing LoginLdap

Method authenticateAndRedirect() requires md5 being passed, but currently plain password is being passed. This PR fixes this