Registration fixes, Login fixes, Template view fixes