Added @login_required to profile and submit pages