Fixed publishing when no file is chosen
Better login
Fixed adding new files when no nav file is present