Modified api files to remove use of WTForms for users; Proper api logout method