Simple Login & Registration API and template.