Added login with devise and tests