Implemented devise completely to handle users