a login form from ray tutorial