only include hash lib if we need it
handle empty ajax response
add login module to ajax callback handlers