Added ";" to missing lines
Changed spaces to tabs
removed unnecessary spaces
improved logto() s