create a function in order to quickly be able to emulate the 'login' action for my functionnal test