fixed some login php errors