add devise functions