modified controller for devise