working login page and small fixes