Fixed small authorization bugs, moved submission page to its own .py file