refacto app : split in 2 for login and transaction