Finished basic devise rewrite