added a login and registation system with devise