Fixed so login on first page works, should be fixed thoguh