Added login functionality applying devise