Login and reg almost ok