Moved checkInput to new library, structured login php