implemented devise