Update gems and fix devise bugs