login ok, registration almost ok