Restructures application once again and created authenticate module