Removed legacies from the code at the log in