more edits to user model to try to get flask login working