built rails user & session models and controllers