Added login and authentication based on devise