Added devise login functionality