Cosmetics in base.html
Move login function to end. No need to login_required in the post function, fix this.