bug in log in fixed