Added login functionality with devise