Replace check-credentials with auth view.
Update frontend to use new auth view.
Change edit_user to only work on authenticated user.
Fix syntax error.
Remove User.admin column and create_user view.