Modeified devise controller