login debugged

- changes in database to fit the queries
- login is now functionnal