upgrade ionic version and fix bugs on duplicate logins