Swapped bcrypt for bcryptjs. Login and registration now working