Tried making loginChecker respond to arguments rather than environment only