added modules and edited devise initializer