Implemented devise bug fix