Removed sort(), ERROR: login does not work