fixed signin issues

Fixed signin issues in mongoose schema.