login module largely completed